#pragma once

class NoCopy    // 子类继承 NoCopy 便不能使用拷贝构造和赋值拷贝
{
public:

    NoCopy(const NoCopy&) = delete;
    NoCopy& operator=(const NoCopy&) = delete;

    NoCopy() = default;
    ~NoCopy() = default;
};

enum ExitCode
{
    NORMAL = 0,
    SOCKET_ERR,
    BIND_ERR,
    LISTEN_ERR,
    CONNECT_ERR,
    FORK_ERR,
    
};
